import request from '@/utils/request'
export default {
    //单位添加到本地
    importPublicList(breedTypeListStr='fish', list = []) {
        return request.post("/v3/templateTenant/unitType/importPublicList", {
            list: list,
            breedType: breedTypeListStr||'fish',
            organizationNo: sessionStorage.organizationNo
        });
    },
    edit(data) {
        return request.post("/v3/templateTenant/unitType/edit", {
            ...data
        });
    },
    //本地单位
    queryPageByCondition(params) {
        return request.post("/v3/templateTenant/unitType/queryPageByCondition", {
            page: params.page,
            size: params.size,
            auditFlag: 1,
            entity: params.entity || { organizationNo: sessionStorage.organizationNo }
        })
    },
    queryByCondition(data) {
        return request.post("/v3/templateTenant/unitType/queryPageByCondition", {data})
    },
    //删除单位
    delList(list) {
        return request.post("/v3/templateTenant/unitType/delListByNo", {
            list: list,
            organizationNo: sessionStorage.organizationNo
        });
    }
};
